#pragma once
#include "EpilStatementCodeBase.h"
#include "EpilCodeBase.h"
#include <list>

using namespace std;


class EpilChunkCode : public EpilCodeBase
{
	EPIL_CODE_DECL( Chunk );

public:
	EpilChunkCode( const EpilLexLocation & location );
	virtual ~EpilChunkCode();

	EpilStatementCodeList &				GetStatements()												{ return m_statements; }
	const EpilStatementCodeList &		GetStatements() const										{ return m_statements; }
	void								SetStatements( const EpilStatementCodeList & statements )	{ m_statements = statements; }

	virtual tstring						ToEpilCode( int indent ) const;

private:
	EpilStatementCodeList				m_statements;
};
